Optimal. Leaf size=9 \[ E\left (\left .\frac {\pi }{2}+x\right |-1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {3256}
\begin {gather*} E\left (\left .x+\frac {\pi }{2}\right |-1\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3256
Rubi steps
\begin {align*} \int \sqrt {1+\cos ^2(x)} \, dx &=E\left (\left .\frac {\pi }{2}+x\right |-1\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 11, normalized size = 1.22 \begin {gather*} \sqrt {2} E\left (x\left |\frac {1}{2}\right .\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 40 vs. \(2 (17 ) = 34\).
time = 0.32, size = 41, normalized size = 4.56
method | result | size |
default | \(-\frac {\sqrt {\left (1+\cos ^{2}\left (x \right )\right ) \left (\sin ^{2}\left (x \right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (2 x \right )}{2}}\, \EllipticE \left (\cos \left (x \right ), i\right )}{\sqrt {1-\left (\cos ^{4}\left (x \right )\right )}\, \sin \left (x \right )}\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.08, size = 10, normalized size = 1.11 \begin {gather*} {\rm integral}\left (\sqrt {\cos \left (x\right )^{2} + 1}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {\cos ^{2}{\left (x \right )} + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.01, size = 7, normalized size = 0.78 \begin {gather*} \sqrt {2}\,\mathrm {E}\left (x\middle |\frac {1}{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________